package org.ims.inv.model.worklog;

import org.ims.inv.model.system.ModelAppUser;

import cn.trymore.core.model.ModelBase;

/**
 * Model: 工作日志基类
 * 
 * @author Jeccy
 *
 */
public class ModelWorkBaseLog
extends ModelBase
{
	private static final long serialVersionUID = -4637982401055779287L;
	
	/**
	 * 日志所属人
	 */
	private ModelAppUser logOwner;
	
	/**
	 * 日志事件
	 */
	private String logEvent;
	
	/**
	 * 日志所属类别, 个人/部门
	 */
	private Integer logCategory;
	
	/**
	 * 日志状态
	 */
	private Integer logStatus;
	
	/**
	 * 日志记录人
	 */
	private ModelAppUser logRecorder;
	
	
	/**
	 * The enumeration of work log category
	 * 
	 * @author Jeccy.Zhao
	 *
	 */
	public static enum EWrokLogCategory
	{
		PERSONAL(0, "personal"),				// 个人日志
		DEPARTMENT(1, "department");			// 部门日志
		
		private Integer value;
		private String text;
		
		EWrokLogCategory (Integer value, String text)
		{
			this.value = value;
			this.text = text;
		}
		
		public Integer getValue(){
			return value;
		}
		
		public String getText()
		{
			return this.text;
		}
	}
	
	public ModelAppUser getLogOwner()
	{
		return logOwner;
	}

	public void setLogOwner(ModelAppUser logOwner)
	{
		this.logOwner = logOwner;
	}

	public String getLogEvent()
	{
		return logEvent;
	}

	public void setLogEvent(String logEvent)
	{
		this.logEvent = logEvent;
	}

	public Integer getLogCategory()
	{
		return logCategory;
	}

	public void setLogCategory(Integer logCategory)
	{
		this.logCategory = logCategory;
	}

	public Integer getLogStatus()
	{
		return logStatus;
	}

	public void setLogStatus(Integer logStatus)
	{
		this.logStatus = logStatus;
	}

	public ModelAppUser getLogRecorder()
	{
		return logRecorder;
	}

	public void setLogRecorder(ModelAppUser logRecorder)
	{
		this.logRecorder = logRecorder;
	}
	
}
